src/StripeObject.php
public function store(\Stripe\StripeObject $object, $meta = null)
    {
        $model = static::firstOrNew(['id' => $object->id]);
        $model->relatesWith = $this->relatesWith;
        $model->fill([
            'type' => class_basename($object),
            'data' => $object->jsonSerialize(),
            'meta' => $meta,
        ]);
        $model->save();

        // Cascade relations
        if ($this->exists && $this->id !== $model->id) {
            DB::table('stripe_object_relations')->where('stripe_object_id', $this->id)->update(['stripe_object_id' => $model->id]);
        }

        return $model;
    }
public function store(\Stripe\StripeObject $object, $meta = null)
    {
        $model = static::firstOrNew(['id' => $object->id]);
        $model->relatesWith = $this->relatesWith;
        $model->fill([
            'type' => class_basename($object),
            'data' => $object->jsonSerialize(),
            'meta' => $meta,
        ]);
        $model->save();

        // Cascade relations
        if ($this->exists && $this->id !== $model->id) {
            DB::table('stripe_object_relations')->where('stripe_object_id', $this->id)->update(['stripe_object_id' => $model->id]);
        }

        return $model;
    }
@param \Stripe\StripeObject $object

@param null $meta
@return StripeObject