This commit is contained in:
2024-02-07 16:15:01 +05:00
parent 9639d80704
commit be3828ef1e
2 changed files with 7 additions and 2 deletions

View File

@@ -26,6 +26,7 @@ class OnlinePaymentController extends Controller
// Find related resource
$resource = (new $paymentHistory->online_paymantable_type)->find(id: $paymentHistory->online_paymantable_id);
// If resource could not be found or does not exist, then inform it via logs
if (! $resource) {
Log::channel('halkbank_payment_check_error')
->error('Related resource not found', [