Skip to content

Commit

Permalink
Prevent mass assignment issue
Browse files Browse the repository at this point in the history
  • Loading branch information
driesvints committed Aug 30, 2024
1 parent 67f3625 commit be656fb
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 be656fb

Please sign in to comment.