php artisan make:migration add_columns_to_webhook_calls
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class AddColumnsToWebhookCalls extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up(): void
{
Schema::table('webhook_calls', function (Blueprint $table) {
$table->string('url')->nullable();
$table->json('headers')->nullable();
$table->json('payload')->change();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down(): void
{
Schema::table('webhook_calls', function (Blueprint $table) {
$table->dropColumn('url');
$table->dropColumn('headers');
$table->text('payload')->change();
});
}
}
-
add a key
store_headers
to each entry inconfigs
of thewebhook-client
config file. See the default config file for an example. -
the
Spatie\WebhookClient\Events\InvalidSignature
event has been renamed toSpatie\WebhookClient\Events\InvalidWebhookSignatureEvent
-
the
Spatie\WebhookClient\ProcessWebhookJob
job has been moved toSpatie\WebhookClient\Jobs\ProcessWebhookJob
-
the
Spatie\WebhookClient\Events\InvalidWebhookSignatureEvent
event get theSpatie\WebhookClient\WebhookConfig
as parameter