Skip to content

Commit f30913a

Browse files
authored
Prevent mass assignment issue (#1713)
1 parent 67f3625 commit f30913a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Http/Controllers/WebhookController.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,8 @@ protected function handleCustomerSubscriptionCreated(array $payload)
102102

103103
// Terminate the billable's generic trial if it exists...
104104
if (! is_null($user->trial_ends_at)) {
105-
$user->update(['trial_ends_at' => null]);
105+
$user->trial_ends_at = null;
106+
$user->save();
106107
}
107108
}
108109

0 commit comments

Comments
 (0)