Skip to content

Commit

Permalink
fix syntax error
Browse files Browse the repository at this point in the history
  • Loading branch information
vamuigua committed May 10, 2024
1 parent dc3dc2b commit 9a3477a
Show file tree
Hide file tree
Showing 5 changed files with 14,832 additions and 130,102 deletions.
8 changes: 4 additions & 4 deletions app/Http/Controllers/Tenant/PaymentsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,11 @@ public function paymentsStore(Request $request)

$amount_paid = $this->validatedData['amount_paid'];

$paymentData = ['payment_type' => 'mpesa'];
array_merge($this->validatedData, $paymentData);

// Create a new payment with the validated data
$payment = Payment::create(array_merge(
$this->validatedData,
['payment_type' => 'mpesa'],
));
$payment = Payment::create();

$payment_id = $payment->id;

Expand Down
Loading

0 comments on commit 9a3477a

Please sign in to comment.