Apply previous changes: slack webhooks, date range issue, 12h am/pm format, today preifl, api-keys
This commit is contained in:
@@ -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,
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
@@ -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');
|
||||
});
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user