diff --git a/app/Voter.php b/app/Voter.php index a055a05..0ccd09e 100644 --- a/app/Voter.php +++ b/app/Voter.php @@ -10,5 +10,5 @@ class Voter extends Authenticatable use HasApiTokens; protected $table = 'voter'; - protected $fillable = ['name', 'no_kp', 'no_anggota','unit', 'election_id', 'alamat', 'telefon']; + protected $fillable = ['name', 'no_kp', 'no_anggota','unit', 'election_id', 'alamat', 'telefon', 'saham', 'yuran']; } diff --git a/database/migrations/2024_03_26_095932_add_saham_to_voter_table.php b/database/migrations/2024_03_26_095932_add_saham_to_voter_table.php new file mode 100644 index 0000000..9b30d61 --- /dev/null +++ b/database/migrations/2024_03_26_095932_add_saham_to_voter_table.php @@ -0,0 +1,34 @@ +decimal('saham', 9,2); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('voter', function (Blueprint $table) { + // + $table->dropColumn('saham'); + }); + } +} diff --git a/database/migrations/2024_03_26_100140_add_yuran_to_voter_table.php b/database/migrations/2024_03_26_100140_add_yuran_to_voter_table.php new file mode 100644 index 0000000..2695571 --- /dev/null +++ b/database/migrations/2024_03_26_100140_add_yuran_to_voter_table.php @@ -0,0 +1,35 @@ +decimal('yuran', 9,2); + + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('voter', function (Blueprint $table) { + // + $table->dropColumn('yuran'); + }); + } +} diff --git a/resources/assets/js/components/demo/admin/voter/add.vue b/resources/assets/js/components/demo/admin/voter/add.vue index 5f4e828..e631ed0 100644 --- a/resources/assets/js/components/demo/admin/voter/add.vue +++ b/resources/assets/js/components/demo/admin/voter/add.vue @@ -34,6 +34,16 @@ +