refactor: modify form field validation by removing journalist email uniqueness and adjusting various text input maximum lengths.

This commit is contained in:
Yoga Pangestu 2026-03-12 12:05:46 +07:00
parent 28ca845adb
commit edd0e92971
3 changed files with 4 additions and 5 deletions

View File

@ -212,7 +212,7 @@ public static function form(Schema $schema): Schema
->placeholder('John Doe')
->autocomplete(false)
->required()
->maxLength(100)
->maxLength(150)
->columnSpanFull(),
])
->columns(2)

View File

@ -136,7 +136,7 @@ public static function form(Schema $schema): Schema
'title' => 'Organisasi Kewartawanan',
'text_name' => 'journalism_organization',
'placeholder' => '*****',
'max' => 100,
'max' => 255,
'max_size' => 1024 * 10,
'file_name' => 'journalism_organization_docs',
'accept' => ['application/pdf'],
@ -146,7 +146,7 @@ public static function form(Schema $schema): Schema
'title' => 'Sertifikat Dewan Pers',
'text_name' => 'press_council_certificate',
'placeholder' => '*****',
'max' => 100,
'max' => 255,
'max_size' => 1024 * 10,
'file_name' => 'press_council_certificate_docs',
'accept' => ['application/pdf'],
@ -164,7 +164,7 @@ public static function form(Schema $schema): Schema
->autocomplete(false)
->autofocus()
->required()
->maxLength(100),
->maxLength(50),
TextInput::make('link')
->label('Tautan')

View File

@ -90,7 +90,6 @@ public static function form(Schema $schema): Schema
->autocomplete(false)
->required()
->maxLength(254)
->unique('journalists', 'email', ignoreRecord: true)
->email(),
TextInput::make('phone_number')