Skip to content

Commit

Permalink
Prevent mass assignment issue (#1713)
Browse files Browse the repository at this point in the history
  • Loading branch information
driesvints committed Aug 31, 2024
1 parent 67f3625 commit f30913a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Http/Controllers/WebhookController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
}

Expand Down

0 comments on commit f30913a

Please sign in to comment.