From be656fb0ae5ad93b96ca0556f08a17967b5b9b27 Mon Sep 17 00:00:00 2001 From: Dries Vints Date: Fri, 30 Aug 2024 16:55:03 +0200 Subject: [PATCH] Prevent mass assignment issue --- src/Http/Controllers/WebhookController.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Http/Controllers/WebhookController.php b/src/Http/Controllers/WebhookController.php index d9ec9d76..0e58e785 100644 --- a/src/Http/Controllers/WebhookController.php +++ b/src/Http/Controllers/WebhookController.php @@ -102,7 +102,8 @@ protected function handleCustomerSubscriptionCreated(array $payload) // Terminate the billable's generic trial if it exists... if (! is_null($user->trial_ends_at)) { - $user->update(['trial_ends_at' => null]); + $user->trial_ends_at = null; + $user->save(); } }