From 6fdca191e078b43bd742ff9bafa43ace18d08dc2 Mon Sep 17 00:00:00 2001 From: panabonic Date: Tue, 5 Sep 2023 11:08:45 +0300 Subject: [PATCH] publication name length fix --- app/Services/Forms/Publications/PublicationNewsForms.php | 2 +- app/Services/Forms/Publications/PublicationPhotosForms.php | 2 +- app/Services/Forms/Publications/PublicationPortfolioForms.php | 2 +- app/Services/Forms/Publications/PublicationSmiForms.php | 2 +- .../migrations/2023_06_07_153956_create_publications_table.php | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/app/Services/Forms/Publications/PublicationNewsForms.php b/app/Services/Forms/Publications/PublicationNewsForms.php index 16d8f21..bb1c555 100644 --- a/app/Services/Forms/Publications/PublicationNewsForms.php +++ b/app/Services/Forms/Publications/PublicationNewsForms.php @@ -39,7 +39,7 @@ class PublicationNewsForms extends FormsService { 'title' => 'Название', 'type' => FieldType::STRING, 'required' => true, - 'max_length' => 127, + 'max_length' => 750, 'value' => $model->name ?? null ], [ diff --git a/app/Services/Forms/Publications/PublicationPhotosForms.php b/app/Services/Forms/Publications/PublicationPhotosForms.php index 6d068e1..232794a 100644 --- a/app/Services/Forms/Publications/PublicationPhotosForms.php +++ b/app/Services/Forms/Publications/PublicationPhotosForms.php @@ -50,7 +50,7 @@ class PublicationPhotosForms 'title' => 'Название', 'type' => FieldType::STRING, 'required' => true, - 'max_length' => 127, + 'max_length' => 750, 'value' => $model->name ?? null ], [ diff --git a/app/Services/Forms/Publications/PublicationPortfolioForms.php b/app/Services/Forms/Publications/PublicationPortfolioForms.php index 55e97ad..ee87801 100644 --- a/app/Services/Forms/Publications/PublicationPortfolioForms.php +++ b/app/Services/Forms/Publications/PublicationPortfolioForms.php @@ -36,7 +36,7 @@ class PublicationPortfolioForms 'title' => 'Название компании', 'type' => FieldType::STRING, 'required' => true, - 'max_length' => 127, + 'max_length' => 750, 'value' => $model->name ?? null ], [ diff --git a/app/Services/Forms/Publications/PublicationSmiForms.php b/app/Services/Forms/Publications/PublicationSmiForms.php index 1311f13..73233dd 100644 --- a/app/Services/Forms/Publications/PublicationSmiForms.php +++ b/app/Services/Forms/Publications/PublicationSmiForms.php @@ -43,7 +43,7 @@ class PublicationSmiForms 'title' => 'Название', 'type' => FieldType::STRING, 'required' => true, - 'max_length' => 127, + 'max_length' => 750, 'value' => $model->name ?? null ], [ diff --git a/database/migrations/2023_06_07_153956_create_publications_table.php b/database/migrations/2023_06_07_153956_create_publications_table.php index 82fcd4e..6629065 100644 --- a/database/migrations/2023_06_07_153956_create_publications_table.php +++ b/database/migrations/2023_06_07_153956_create_publications_table.php @@ -21,7 +21,7 @@ class CreatePublicationsTable extends Migration $table->integer('author_id')->index()->nullable(); $table->string('slug')->index()->nullable(); $table->string('type')->index()->nullable(); - $table->string('name')->index()->nullable(); + $table->string('name', 750)->index()->nullable(); $table->text('excerpt')->nullable(); $table->text('params')->nullable(); $table->boolean('is_published')->index()->default(0);