Apply previous changes: slack webhooks, date range issue, 12h am/pm format, today preifl, api-keys

This commit is contained in:
JhumanJ
2022-09-21 17:23:37 +02:00
parent 341ee04268
commit 18ed28da2e
19 changed files with 305 additions and 132 deletions

View File

@@ -57,7 +57,7 @@ class FormFactory extends Factory
{
return [
'title' => $this->faker->text(30),
'description' => $this->faker->randomHtml(2),
'description' => $this->faker->randomHtml(1),
'notifies' => false,
'send_submission_confirmation' => false,
'webhook_url' => null,
@@ -80,7 +80,8 @@ class FormFactory extends Factory
'use_captcha' => false,
'can_be_indexed' => true,
'password' => false,
'tags' => []
'tags' => [],
'slack_webhook_url' => null,
];
}

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->string('slack_webhook_url')->nullable();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('forms', function (Blueprint $table) {
$table->dropColumn('slack_webhook_url');
});
}
};