From bae7fe0543eea2b96f81f9a13b982ad308a48511 Mon Sep 17 00:00:00 2001 From: Akshay Bokade Date: Fri, 9 Feb 2024 18:39:04 +0530 Subject: [PATCH] Create form fixes --- database/migrations/create_user_consent_table.php.stub | 2 +- .../ConsentOptionResource/Pages/ListConsentOptions.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/database/migrations/create_user_consent_table.php.stub b/database/migrations/create_user_consent_table.php.stub index 0fe901b..b0a75a1 100644 --- a/database/migrations/create_user_consent_table.php.stub +++ b/database/migrations/create_user_consent_table.php.stub @@ -16,7 +16,7 @@ return new class extends Migration Schema::create('consent_options', function (Blueprint $table) { $table->id(); $table->string('key')->unique(); - $table->unsignedBigInteger('version')->nullable()->default(null); + $table->unsignedBigInteger('version')->nullable()->default(1); $table->string('title')->nullable()->default(null); $table->string('label')->nullable()->default(null); $table->text('text')->nullable()->default(null); diff --git a/src/Resources/ConsentOptionResource/Pages/ListConsentOptions.php b/src/Resources/ConsentOptionResource/Pages/ListConsentOptions.php index 9eba8bf..67a0f31 100644 --- a/src/Resources/ConsentOptionResource/Pages/ListConsentOptions.php +++ b/src/Resources/ConsentOptionResource/Pages/ListConsentOptions.php @@ -13,7 +13,7 @@ class ListConsentOptions extends ListRecords protected function getHeaderActions(): array { return [ - Actions\CreateAction::make()->hidden(), + Actions\CreateAction::make(), ]; } }