Change Edit submission button text (#105)
This commit is contained in:
@@ -84,6 +84,7 @@ class FormFactory extends Factory
|
||||
'password' => false,
|
||||
'tags' => [],
|
||||
'slack_webhook_url' => null,
|
||||
'editable_submissions_button_text' => 'Edit submission'
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
@@ -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->text('editable_submissions_button_text')->default('Edit submission');
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::table('forms', function (Blueprint $table) {
|
||||
$table->dropColumn('editable_submissions_button_text');
|
||||
});
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user