Editable Submissions (#49)

* Editable Submissions

* refactor some code

* Update composer.lock

Co-authored-by: JhumanJ <julien@nahum.net>
This commit is contained in:
Chirag
2023-01-10 19:22:14 +05:30
committed by GitHub
parent 997a86f734
commit 0a33581c0a
390 changed files with 2616 additions and 1153 deletions

View File

@@ -71,6 +71,7 @@ class FormFactory extends Factory
'uppercase_labels' => true,
'transparent_background' => false,
'submit_button_text' => 'Submit',
'editable_submissions' => false,
're_fillable' => false,
're_fill_button_text' => 'Fill Again',
'submitted_text' => '<p>Amazing, we saved your answers. Thank you for your time and have a great day!</p>',

View File

@@ -0,0 +1,32 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('forms', function (Blueprint $table) {
$table->boolean('editable_submissions')->default(false);
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('forms', function (Blueprint $table) {
$table->dropColumn('editable_submissions');
});
}
};