Skip to content

Commit

Permalink
Merge branch '9.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
driesvints committed Jul 30, 2019
2 parents bc2d38e + 8f37c15 commit 81eb7cd
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Http/Controllers/WebhookController.php
Original file line number Diff line number Diff line change
Expand Up @@ -191,10 +191,14 @@ protected function handleInvoicePaymentActionRequired(array $payload)
* Get the billable entity instance by Stripe ID.
*
* @param string $stripeId
* @return \Laravel\Cashier\Billable
* @return \Laravel\Cashier\Billable|null
*/
protected function getUserByStripeId($stripeId)
{
if ($stripeId === null) {
return;
}

$model = config('cashier.model');

return (new $model)->where('stripe_id', $stripeId)->first();
Expand Down

0 comments on commit 81eb7cd

Please sign in to comment.