Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
konaspi2024
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Siti Aisah
konaspi2024
Commits
a7a928d1
Commit
a7a928d1
authored
Apr 01, 2024
by
Muhammad Iskandar Java
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
error handling update pembayaran
parent
3e0d0d9d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
12 deletions
+20
-12
app/Http/Controllers/RegistrasiController.php
+20
-12
No files found.
app/Http/Controllers/RegistrasiController.php
View file @
a7a928d1
...
...
@@ -342,21 +342,29 @@ public function updatePembayaran(Request $request, $va)
],
200
);
}
$registrasi
=
Registrasi
::
query
()
->
with
(
'pkKegiatan'
,
'pkRegistrasiPeserta.rKegiatanPeserta'
,
'pkRegistrasiPeserta.rKonferensiPeserta'
)
->
where
(
'nomor_va'
,
$va
)
->
update
([
'tanggal_bayar'
=>
Carbon
::
now
()
]);
try
{
$registrasi
=
Registrasi
::
query
()
->
with
(
'pkKegiatan'
,
'pkRegistrasiPeserta.rKegiatanPeserta'
,
'pkRegistrasiPeserta.rKonferensiPeserta'
)
->
where
(
'nomor_va'
,
$va
)
->
update
([
'tanggal_bayar'
=>
Carbon
::
now
()
]);
$data
=
$this
->
getDataRegis
(
$va
);
$data
=
$this
->
getDataRegis
(
$va
);
SendMail
::
dispatch
(
$data
,
'email.selesai_pembayaran'
,
$data
[
'registrasi'
]
->
email
,
'registrasi'
,
'email_pembayaran_sent_at'
);
SendMail
::
dispatch
(
$data
,
'email.selesai_pembayaran'
,
$data
[
'registrasi'
]
->
email
,
'registrasi'
,
'email_pembayaran_sent_at'
);
return
response
([
'status'
=>
200
,
'message'
=>
'success'
],
200
);
return
response
([
'status'
=>
200
,
'message'
=>
'success'
],
200
);
}
catch
(
Exception
$ex
){
return
response
([
'status'
=>
404
,
'message'
=>
'gagal mengupdate data'
],
200
);
}
}
public
function
testEmail
(
Request
$request
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment