Commit ff94b584 by Muhammad Iskandar Java

Merge branch 'master' of http://git.unesa.ac.id/aisah/konaspi2024

parents acea6b2c 2a89bec6
...@@ -22,7 +22,8 @@ public function create(){ ...@@ -22,7 +22,8 @@ public function create(){
$nourut = sprintf("%05s", $jumlahPendaftar+1); $nourut = sprintf("%05s", $jumlahPendaftar+1);
$tgldaftar = Carbon::now()->format('d-m-Y'); $tgldaftar = Carbon::now()->format('d-m-Y');
$komponen = explode('-', $tgldaftar); $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 = [ $data = [
'kegiatan' => $kegiatan, 'kegiatan' => $kegiatan,
...@@ -34,7 +35,6 @@ public function create(){ ...@@ -34,7 +35,6 @@ public function create(){
} }
public function store(Request $request) { public function store(Request $request) {
// dd($request);
$rules = [ $rules = [
'nama' => 'required|string', 'nama' => 'required|string',
'email' => 'required|email:rfc,dns', 'email' => 'required|email:rfc,dns',
...@@ -105,7 +105,6 @@ public function store(Request $request) { ...@@ -105,7 +105,6 @@ public function store(Request $request) {
} }
catch(Exception $e){ catch(Exception $e){
dd($e);
Log::error($e); Log::error($e);
DB::rollBack(); DB::rollBack();
......
...@@ -89,6 +89,7 @@ ...@@ -89,6 +89,7 @@
</tr> </tr>
@php @php
$i++; $i++;
$no++;
@endphp @endphp
@endforeach @endforeach
</table> </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