first(); } public static function getEventObject(WebhookReceived $event) { return $event->payload['data']['object']; } public static function getEventType(WebhookReceived $event) { return $event->payload['type']; } public static function setStripeApiKey() { \Stripe\Stripe::setApiKey(config('services.stripe.secret')); } }