From c547f8f5c139f116535539697d9ba177b358fbf5 Mon Sep 17 00:00:00 2001 From: Yoga Pangestu Date: Wed, 4 Feb 2026 14:04:29 +0700 Subject: [PATCH] feat: increase max length for company document and director name fields to 150 characters in both the UI and database. --- app/Filament/Pages/Company.php | 14 +++++++------- .../2025_11_20_041121_create_companies_table.php | 16 ++++++++-------- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/app/Filament/Pages/Company.php b/app/Filament/Pages/Company.php index 1a513b1..7793447 100644 --- a/app/Filament/Pages/Company.php +++ b/app/Filament/Pages/Company.php @@ -113,7 +113,7 @@ public static function form(Schema $schema): Schema 'title' => 'Akta Pendirian', 'text_name' => 'deed_incorporation', 'placeholder' => '*****', - 'max' => 100, + 'max' => 150, 'max_size' => 1024 * 10, 'file_name' => 'deed_incorporation_docs', 'accept' => ['application/pdf'], @@ -123,7 +123,7 @@ public static function form(Schema $schema): Schema 'title' => 'SIUP / NIB', 'text_name' => 'trade_license', 'placeholder' => '*****', - 'max' => 100, + 'max' => 150, 'max_size' => 1024 * 10, 'file_name' => 'trade_license_docs', 'accept' => ['application/pdf'], @@ -133,7 +133,7 @@ public static function form(Schema $schema): Schema 'title' => 'NPWP', 'text_name' => 'tax_id_number', 'placeholder' => '*****', - 'max' => 100, + 'max' => 150, 'max_size' => 1024 * 10, 'file_name' => 'tax_id_number_docs', 'accept' => ['application/pdf'], @@ -143,7 +143,7 @@ public static function form(Schema $schema): Schema 'title' => 'PKP', 'text_name' => 'taxable_enterprise', 'placeholder' => '*****', - 'max' => 100, + 'max' => 150, 'max_size' => 1024 * 10, 'file_name' => 'taxable_enterprise_docs', 'accept' => ['application/pdf'], @@ -153,7 +153,7 @@ public static function form(Schema $schema): Schema 'title' => 'SPT Tahunan', 'text_name' => 'annual_tax_return', 'placeholder' => '*****', - 'max' => 100, + 'max' => 150, 'max_size' => 1024 * 10, 'file_name' => 'annual_tax_return_docs', 'accept' => ['application/pdf'], @@ -163,7 +163,7 @@ public static function form(Schema $schema): Schema 'title' => 'Suket Domisili', 'text_name' => 'domicile_certificate', 'placeholder' => '*****', - 'max' => 100, + 'max' => 150, 'max_size' => 1024 * 10, 'file_name' => 'domicile_certificate_docs', 'accept' => ['application/pdf'], @@ -173,7 +173,7 @@ public static function form(Schema $schema): Schema 'title' => 'Profil Perusahaan', 'text_name' => 'profile', 'placeholder' => '*****', - 'max' => 100, + 'max' => 150, 'max_size' => 1024 * 10, 'file_name' => 'profile_docs', 'accept' => ['application/pdf'], diff --git a/database/migrations/2025_11_20_041121_create_companies_table.php b/database/migrations/2025_11_20_041121_create_companies_table.php index 840f741..9bd0fc1 100644 --- a/database/migrations/2025_11_20_041121_create_companies_table.php +++ b/database/migrations/2025_11_20_041121_create_companies_table.php @@ -17,15 +17,15 @@ public function up(): void $table->string('name', 100)->index(); $table->string('email', 254)->index(); $table->text('address'); - $table->string('director_name', 100); + $table->string('director_name', 150); $table->string('director_nik', 16); - $table->string('deed_incorporation', 100); - $table->string('trade_license', 100); - $table->string('tax_id_number', 100); - $table->string('taxable_enterprise', 100); - $table->string('annual_tax_return', 100); - $table->string('domicile_certificate', 100); - $table->string('profile', 100); + $table->string('deed_incorporation', 150); + $table->string('trade_license', 150); + $table->string('tax_id_number', 150); + $table->string('taxable_enterprise', 150); + $table->string('annual_tax_return', 150); + $table->string('domicile_certificate', 150); + $table->string('profile', 150); $table->timestamp('created_at')->useCurrent(); $table->timestamp('updated_at')->nullable()->useCurrentOnUpdate(); $table->softDeletes();