File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,6 @@ protected function getData(): array
1515 {
1616 $ data = Anggota::select (DB ::raw ('count(*) as total ' ), 'tahun_lk1 ' )
1717 ->whereNotNull ('tahun_lk1 ' )
18- ->where ('tahun_lk1 ' , '!= ' , '' )
1918 ->groupBy ('tahun_lk1 ' )
2019 ->orderBy ('tahun_lk1 ' , 'asc ' )
2120 ->get ();
Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ public function run(): void
2929 $ superAdminAnggota = Anggota::create ([
3030 'nama ' => 'Super Admin ' ,
3131 'kelamin ' => 'Laki-laki ' ,
32+ 'tahun_lk1 ' => null ,
3233 ]);
3334 // === Super Admin (tanpa anggota) ===
3435 $ superAdmin = User::create ([
@@ -89,12 +90,14 @@ public function run(): void
8990 'nama ' => 'Admin Teknik ' ,
9091 'kelamin ' => 'Laki-laki ' ,
9192 'komisariat_id ' => $ komisariatFT ->id ,
93+ 'tahun_lk1 ' => null ,
9294 ]);
9395
9496 $ adminFisipAnggota = Anggota::create ([
9597 'nama ' => 'Admin FISIP ' ,
9698 'kelamin ' => 'Laki-laki ' ,
9799 'komisariat_id ' => $ komisariatFISIP ->id ,
100+ 'tahun_lk1 ' => null ,
98101 ]);
99102
100103 // === Buat user dan hubungkan ke anggota ===
You can’t perform that action at this time.
0 commit comments