feat: Increase maximum length for link/URL fields in forms and database migrations.
This commit is contained in:
parent
c547f8f5c1
commit
a97c4d9f2d
@ -171,7 +171,7 @@ public static function form(Schema $schema): Schema
|
||||
->placeholder('https://www.pwknews.com')
|
||||
->autocomplete(false)
|
||||
->nullable()
|
||||
->maxLength(50)
|
||||
->maxLength(255)
|
||||
->url(),
|
||||
|
||||
Textarea::make('address')
|
||||
|
||||
@ -87,7 +87,7 @@ public function form(Schema $schema): Schema
|
||||
TextInput::make('link')
|
||||
->label('Tautan')
|
||||
->placeholder('https://example.com')
|
||||
->maxLength(50)
|
||||
->maxLength(255)
|
||||
->url()
|
||||
->required()
|
||||
->autocomplete(false),
|
||||
|
||||
@ -34,7 +34,7 @@ public static function configure(Schema $schema): Schema
|
||||
->placeholder('https://www.pwknews.com')
|
||||
->autocomplete(false)
|
||||
->nullable()
|
||||
->maxLength(50)
|
||||
->maxLength(255)
|
||||
->url(),
|
||||
|
||||
Grid::make(2)
|
||||
|
||||
@ -57,7 +57,7 @@ public static function configure(Schema $schema): Schema
|
||||
->placeholder('https://www.pwknews.com')
|
||||
->autocomplete(false)
|
||||
->nullable()
|
||||
->maxLength(50)
|
||||
->maxLength(255)
|
||||
->url(),
|
||||
|
||||
RichEditor::make('quote')
|
||||
|
||||
@ -51,7 +51,7 @@ public static function configure(Schema $schema): Schema
|
||||
->placeholder('https://www.pwknews.com')
|
||||
->autocomplete(false)
|
||||
->nullable()
|
||||
->maxLength(50)
|
||||
->maxLength(255)
|
||||
->url(),
|
||||
])->columnSpan(2),
|
||||
|
||||
|
||||
@ -18,7 +18,7 @@ public function up(): void
|
||||
$table->foreignId('company_id')->constrained()->cascadeOnDelete();
|
||||
$table->string('name', 50)->index();
|
||||
$table->text('address');
|
||||
$table->string('link', 50)->nullable();
|
||||
$table->string('link')->nullable();
|
||||
$table->enum('type', MediaType::values())->default(MediaType::ONLINE)->comment(MediaType::comment())->index();
|
||||
$table->enum('classification', MediaClassification::values())->comment(MediaClassification::comment())->index();
|
||||
$table->string('journalism_organization')->nullable();
|
||||
|
||||
@ -18,7 +18,7 @@ public function up(): void
|
||||
$table->text('title', 255);
|
||||
$table->string('channel', 20)->index();
|
||||
$table->string('writter', 50);
|
||||
$table->text('link', 50)->nullable();
|
||||
$table->text('link')->nullable();
|
||||
$table->string('news_page', 20)->nullable();
|
||||
$table->text('quote')->nullable();
|
||||
$table->text('content');
|
||||
|
||||
@ -16,7 +16,7 @@ public function up(): void
|
||||
$table->id();
|
||||
$table->foreignId('classification_id')->constrained()->cascadeOnDelete();
|
||||
$table->text('title');
|
||||
$table->text('link', 50)->nullable();
|
||||
$table->text('link')->nullable();
|
||||
$table->date('posting_date')->index();
|
||||
$table->enum('type', ContentType::values())->default(ContentType::FOTO)->index();
|
||||
$table->string('channel', 20)->index();
|
||||
|
||||
@ -19,7 +19,7 @@ public function up(): void
|
||||
$table->string('slug', 200)->index();
|
||||
$table->text('content');
|
||||
$table->text('excerpt');
|
||||
$table->string('link', 50)->nullable();
|
||||
$table->string('link')->nullable();
|
||||
$table->unsignedInteger('views')->default(0)->index();
|
||||
$table->enum('status', NewsStatus::values())->comment(NewsStatus::comment())->index();
|
||||
$table->timestamp('published_at')->nullable()->index();
|
||||
|
||||
@ -17,7 +17,7 @@ public function up(): void
|
||||
$table->foreignId('media_task_assignment_id')->constrained('media_task_assignment')->cascadeOnDelete();
|
||||
$table->string('title', 200);
|
||||
$table->date('publication_date')->index();
|
||||
$table->string('link', 50);
|
||||
$table->string('link');
|
||||
$table->text('description');
|
||||
$table->enum('status', ApprovalStatus::values())->default(ApprovalStatus::PENDING)->comment(ApprovalStatus::comment())->index();
|
||||
$table->timestamp('created_at')->useCurrent();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user