Commit 2a89bec6 by Triyah Fatmawati

Ubah kode registrasi

parent 97631478
......@@ -22,7 +22,8 @@ public function create(){
$nourut = sprintf("%05s", $jumlahPendaftar+1);
$tgldaftar = Carbon::now()->format('d-m-Y');
$komponen = explode('-', $tgldaftar);
$koderegistrasi = 'REG-'.$komponen[0].$komponen[1].$komponen[2].$nourut;
// $koderegistrasi = 'REG-'.$komponen[0].$komponen[1].$komponen[2].$nourut;
$koderegistrasi = $komponen[0].$komponen[1].$nourut;
$data = [
'kegiatan' => $kegiatan,
......@@ -34,7 +35,6 @@ public function create(){
}
public function store(Request $request) {
// dd($request);
$rules = [
'nama' => 'required|string',
'email' => 'required|email:rfc,dns',
......@@ -105,7 +105,6 @@ public function store(Request $request) {
}
catch(Exception $e){
dd($e);
Log::error($e);
DB::rollBack();
......
......@@ -89,6 +89,7 @@
</tr>
@php
$i++;
$no++;
@endphp
@endforeach
</table>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment