From 2d6b092b6462c5a2cb3066eb61b7a002961f8cf1 Mon Sep 17 00:00:00 2001 From: Ludovic CANDELLIER Date: Wed, 16 Feb 2022 09:17:51 +0100 Subject: [PATCH] Fix categories & varieties --- .../2022_02_15_233439_modify_categories_tables.php | 2 +- resources/views/Admin/Botanic/Varieties/form.blade.php | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/database/migrations/2022_02_15_233439_modify_categories_tables.php b/database/migrations/2022_02_15_233439_modify_categories_tables.php index 857a3f72..b09acafd 100644 --- a/database/migrations/2022_02_15_233439_modify_categories_tables.php +++ b/database/migrations/2022_02_15_233439_modify_categories_tables.php @@ -9,7 +9,7 @@ return new class extends Migration public function up() { Schema::table('categories', function (Blueprint $table) { - $table->tinyInteger('visible')->after('id'); + $table->tinyInteger('visible')->nullable()->after('id'); }); } }; diff --git a/resources/views/Admin/Botanic/Varieties/form.blade.php b/resources/views/Admin/Botanic/Varieties/form.blade.php index 69da977e..562ec17a 100644 --- a/resources/views/Admin/Botanic/Varieties/form.blade.php +++ b/resources/views/Admin/Botanic/Varieties/form.blade.php @@ -25,6 +25,13 @@ +
+
+ {{ Form::label('memo', 'Descriptif sachet') }} + @include('components.form.textarea', ['name' => 'memo', 'value' => $variety['memo'] ?? null, 'class' => 'editor', 'rows' => 5, 'required' => false]) +
+
+